package com.lh.lepay.controller;

import com.lh.lepay.service.SysRoleService;
import com.lh.lepay.utils.ResponseData;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/role")
@Slf4j
public class SysRoleController {

    @Resource
    private SysRoleService sysRoleService;

    @GetMapping("/getRole")
    public ResponseData getRole(){
        ResponseData responseData = sysRoleService.getRoleStatement();
        log.info("cs：{}", responseData.toString());
        return responseData;
    }
}
